namespace MVCProject.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("GoodsSpecValue")]
    public partial class GoodsSpecValue
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public GoodsSpecValue()
        {
            GoodsPropertyValue = new HashSet<GoodsPropertyValue>();
        }

        [Key]
        public int gsvId { get; set; }

        [Required]
        [StringLength(50)]
        public string value { get; set; }

        [Required]
        [StringLength(32)]
        public string code { get; set; }

        public int gskId { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<GoodsPropertyValue> GoodsPropertyValue { get; set; }

        public virtual GoodsSpecKey GoodsSpecKey { get; set; }
    }
}
